From: Jonas Dreßler Date: Sat, 23 Nov 2019 20:44:55 +0000 (+0100) Subject: appDisplay: Ensure we don't recreate existing AppIcons for folders X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~781^2^2~376 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=7e9f30da0a79ff72d8264a2c0984942fd576b012;p=gnome-shell.git appDisplay: Ensure we don't recreate existing AppIcons for folders This was missed in 910037f014355ee9680c45f82a4aac2891c4074f, make sure we do the same thing for AppIcons that are created when reloading folders. https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/851 --- diff --git a/js/ui/appDisplay.js b/js/ui/appDisplay.js index f78a2c03d..6221eb2b4 100644 --- a/js/ui/appDisplay.js +++ b/js/ui/appDisplay.js @@ -1417,7 +1417,10 @@ class FolderView extends BaseAppView { if (apps.some(appIcon => appIcon.id == appId)) return; - let icon = new AppIcon(app); + let icon = this._items[appId]; + if (!icon) + icon = new AppIcon(app); + apps.push(icon); };